import React from 'react';
import store from './store'
console.log(store)
console.log(store.getState())
const App = () => {
  return (
    <div>
      <button onClick={ () => { 
        console.log(1)
        store.dispatch({ type: 'ADD_COUNT'})
      } }>加</button>
      { store.getState().count }
      <button onClick={ () => { 
        console.log(2)
        store.dispatch({ type: 'REDUCE_COUNT'})
      } }>减</button>
    </div>
  );
};

export default App;